package com.gxa.p2p.common.exception;


import com.gxa.p2p.common.enum1.ExceptionCode;

public class MyException extends Exception{

    private ExceptionCode exceptionCode;

    public ExceptionCode getExceptionCode(){
        return exceptionCode;
    }

    public MyException(ExceptionCode exceptionCode){
        super(exceptionCode.getMessage());
        this.exceptionCode = exceptionCode;
    }
}
